<include file="Public:header" />
<include file="Public:leftside" />

<style>
	.file-item {
		float: left;
		position: relative;
		margin: 0 20px 20px 0;
		padding: 4px;
		background: #000;
	}
	
	.ee_span {
		background: #eee;
		height: 35px;
		display: block;
		line-height: 35px;
		padding-left: 9px;
	}
	
	.edit_ali {
		float: right;
		background: #fd0909;
		color: #fff;
		padding: 1px 8px;
		border-radius: 3px;
	}
</style>
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs">
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i>
				<a href="/">首页</a>
			</li>
			<li>
				<a href="javascript:;">代言统计</a>
			</li>
		</ul>
	</div>
	<div class="page-content" style="padding: 0;border: none;">

		<form action="{:U('Store/store_Save')}" method="post" class="form form-horizontal" role="form">
			<div class="panel-body" style="padding: 0;border: none;">

				<div class="tab-content" style="padding: 16px 12px 55px 12px;">
					<div class="row panel-body">
						<a href="{:U('Account/daiyan')}" class="btn btn-sm btn-primary">代言统计</a>
					</div>
					<section class="panel-default m-b-sm" style="margin:5px 0;">
						<div class="alert alert-info">
							<p>
								<i class="fa fa-hand-o-right m-r-xs"></i><strong>操作提示</strong>
							</p>
							<p class="alert-p m-l-xl"><i class="fa fa-caret-right m-r-xs"></i>该页面可对店铺进行代言统计。</p>
						</div>
					</section>
					<style type="text/css">
						.jilu p{float: left;font-size: 14px;}
					</style>
					<div class="tab-pane fade active in" id="apply">
							
							<div class="panel-body" style="padding: 0;">
								<table class="table table-striped table-bordered table-hover" width="100%" border="0" cellpadding="0" cellspacing="0">
									<thead>
										<tr class="f_black bg_gray">
											<th style="width: 50px;" align="center">ID</th>
											<th style="width: 30%;">用户姓名</th>
											<th>代言次数</th>
											<th>代言金额</th>
											<th>操作</th>
										</tr>
									</thead>
									<tbody>
									<foreach name="rs" item="v">
										<tr class="list">
											<td>{$v.recommend_id}</td>
											<td style="text-align:left;">{$v.username}</td>
											<td>
												{:get_count_daiyan($v['recommend_id'],$v['store_id'])}
											</td>
											<td>{:get_count_daiyan_prcie($v['recommend_id'],$v['store_id'])}</td>
											<td>
												<a href="{:U('Promotion/daiyan_info',array('id'=>$v['recommend_id']))}">查看</a>
											</td>
										</tr>
									</foreach>
									</tbody>
								</table>
							</div>
							<style type="text/css">
								#pagination{
									float: right;
								}
								#pagination a {
									padding: 3px 9px;
									border: 1px solid #988f8f;
									margin-right: 3px;
								}
								
								#pagination span {
									padding: 3px 9px;
									border: 1px solid #988f8f;
									margin-right: 3px;
									background: red;
									color: #fff;
								}
							</style>
							<div id="pagination">
								{$page}
							</div>
							
					</div>
				</div>
			</div>

		</form>
	</div>
<include file="Public:footer" />